package jhunter.dao.ddl;

import java.util.List;

import org.hibernate.mapping.ForeignKey;
import org.hibernate.mapping.Table;

public class TableEx extends Table {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3150283652873324740L;

	@SuppressWarnings("rawtypes")
	public ForeignKey createForeignKey(String keyName, List keyColumns, Table refTable, List referencedColumns) {
		ForeignKey fk = super.createForeignKey(keyName, keyColumns, refTable.getName(), referencedColumns);
		fk.setReferencedTable(refTable);
		
		return fk;
	}
//
//	@Override
//	public boolean isPhysicalTable() {
//		return true;
//	}
//
//	@Override
//	public boolean hasDenormalizedTables() {
//		return false;
//	}
}
